package(default_visibility = ["//visibility:public"])

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_test",
    "go_library",
)

go_test(
    name = "go_default_test",
    srcs = [
        "associate_banner_test.go",
        "associate_ele_api_test.go",
        "associate_mc_test.go",
        "associate_old_test.go",
        "associate_open_test.go",
        "associate_order_test.go",
        "bcoin_test.go",
        "business_test.go",
        "cache_test.go",
        "dao.cache_test.go",
        "dao_test.go",
        "dialog_test.go",
        "http_test.go",
        "jointly_test.go",
        "mail_api_test.go",
        "memcache_test.go",
        "mysql_test.go",
        "old_order_test.go",
        "oldvip_test.go",
        "order_test.go",
        "panel_test.go",
        "pay_test.go",
        "platform_test.go",
        "point_test.go",
        "privilege_test.go",
        "redis_test.go",
        "resource_test.go",
        "tips_test.go",
        "user_test.go",
        "welfare_test.go",
    ],
    embed = [":go_default_library"],
    rundir = ".",
    tags = ["automanaged"],
    deps = [
        "//app/service/main/vip/conf:go_default_library",
        "//app/service/main/vip/model:go_default_library",
        "//library/ecode:go_default_library",
        "//library/time:go_default_library",
        "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
        "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
    ],
)

go_library(
    name = "go_default_library",
    srcs = [
        "associate_banner.go",
        "associate_ele_api.go",
        "associate_mc.go",
        "associate_old.go",
        "associate_open.go",
        "associate_order.go",
        "bcoin.go",
        "business.go",
        "cache.go",
        "dao.cache.go",
        "dao.go",
        "dialog.go",
        "http.go",
        "jointly.go",
        "mail_api.go",
        "memcache.go",
        "mysql.go",
        "old_order.go",
        "oldvip.go",
        "order.go",
        "panel.go",
        "pay.go",
        "platform.go",
        "point.go",
        "privilege.go",
        "redis.go",
        "resource.go",
        "tips.go",
        "user.go",
        "welfare.go",
    ],
    importpath = "go-common/app/service/main/vip/dao",
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
    deps = [
        "//app/service/main/vip/conf:go_default_library",
        "//app/service/main/vip/dao/ele-api-client:go_default_library",
        "//app/service/main/vip/dao/mail-api-client:go_default_library",
        "//app/service/main/vip/model:go_default_library",
        "//library/cache/memcache:go_default_library",
        "//library/cache/redis:go_default_library",
        "//library/database/sql:go_default_library",
        "//library/ecode:go_default_library",
        "//library/log:go_default_library",
        "//library/net/http/blademaster:go_default_library",
        "//library/net/metadata:go_default_library",
        "//library/stat/prom:go_default_library",
        "//library/sync/pipeline/fanout:go_default_library",
        "//library/time:go_default_library",
        "//library/xstr:go_default_library",
        "//vendor/github.com/pkg/errors:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [
        ":package-srcs",
        "//app/service/main/vip/dao/ele-api-client:all-srcs",
        "//app/service/main/vip/dao/mail-api-client:all-srcs",
    ],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
